package com.crr.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "attr")
@ApiModel("规格属性信息表")
public class Attr {

    @TableId(value = "attr_id", type = IdType.AUTO)
    @ApiModelProperty("属性id")
    int attrId;
    @TableField("shop_id")
    @ApiModelProperty("店铺id")
    int shopId;
    @ApiModelProperty("属性名")
    String name;
    @ApiModelProperty("属性描述")
    String des;
    @ApiModelProperty("是否需要指定类型搜索 0:不需要，1:需要")
    int searchType;
    @ApiModelProperty("属性类型0:销售属性，1:基本属性")
    int attrType;
    @ApiModelProperty("属性值")
    @TableField(exist = false)
    List<AttrValue> attrValueList;
    @TableField(exist = false)
    String attrValue;
}
